fix invalid floating point state error